﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlServerCe;
using Scan.PDAService;
using System.Windows.Forms;

namespace Scan
{
    class VouchEntity
    {
        public static string GetVouchCode(VouchType AVouchType)
        {
            //执行 WebService 方法
            ResponseString response = GlobalCache.Instance.WebServiceIfe.GetVouchCode((int)AVouchType);
            //if (response.ErrorInfo.ErrorCode == 1)
            //{
            //    return response.ReturnValue;
            //}
            return response.ErrorInfo.ErrorMsg;
        }

        // 上传采购入库单数据
        public static bool UploadVouchStockInPut()
        {
            //执行 WebService 方法
            ResponseBaseOfWarehouse response = GlobalCache.Instance.WebServiceIfe.GetWarehouses(false, "", "");
            
            return false;
        }
    }
}
